/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipServiceSendcar;
import com.sasis.dao.VipServiceSendcarDao;
import com.sasis.service.VipServiceSendcarManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipServiceSendcarManagerImpl extends BaseManager implements VipServiceSendcarManager {
    private VipServiceSendcarDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipServiceSendcarDao(VipServiceSendcarDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipServiceSendcarManager#getVipServiceSendcars(com.sasis.model.VipServiceSendcar)
     */
    public List getVipServiceSendcars(final VipServiceSendcar vipServiceSendcar) {
        return dao.getVipServiceSendcars(vipServiceSendcar);
    }

    /**
     * @see com.sasis.service.VipServiceSendcarManager#getVipServiceSendcar(String id)
     */
    public VipServiceSendcar getVipServiceSendcar(final String id) {
        return dao.getVipServiceSendcar(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipServiceSendcarManager#saveVipServiceSendcar(VipServiceSendcar vipServiceSendcar)
     */
    public int saveVipServiceSendcar(VipServiceSendcar vipServiceSendcar) {
        return dao.saveVipServiceSendcar(vipServiceSendcar); 
    }

    /**
     * @see com.sasis.service.VipServiceSendcarManager#removeVipServiceSendcar(String id)
     */
    public void removeVipServiceSendcar(VipServiceSendcar vipServiceSendcar) {
        dao.removeVipServiceSendcar( vipServiceSendcar);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
